﻿{extend name="common/base"}
{block name="title"}我的优惠卷{/block}

<body>

{block name="content"}

	<!-- product list -->
	<div class="product-list segments-page" style="margin: 0px auto">
		<div class="container" style="margin: 0px auto">
			<div class="content no-bb">
				<div class="pages-title">
					<h4>我的优惠券</h4>
				</div>
				{volist name="coupon_list" id="val"}
				<div class="product-image">
					<img src="__STATIC__/index/images/Coupon_cx.png" alt="">
				</div>
				<div class="product-text">
					<h5>¥{$val.coupon_money}</h5>
					<p>{$val.coupon_name}</p>					
					<p>使用起始日期 : {$val.use_start_time}</p>
					<p style="margin-top:-10px;">使用结束日期 : {$val.use_end_time}
						<a href="{if condition="isset($guigetype_id)"}{:url('index/cart/checkout')}{else /}{:url('index/cart/checkoutCar')}{/if}?{if condition="isset($guigetype_id)"}guigetype_id={$guigetype_id}&{/if}coupon_id={$val.id}"><button style="margin-left:20px;" class="button">去使用</button></a>
					</p>									
				</div>
				<div class="clear"></div>
				{/volist}
			</div>			
		</div>
	</div>
	<!-- end product list -->
{/block}

	<script src="__STATIC__/index/js/jquery.min.js"></script>
	<script src="__STATIC__/index/js/materialize.js"></script>
	<script src="__STATIC__/index/js/owl.carousel.min.js"></script>
	<script src="__STATIC__/index/js/main.js"></script>

</body>
</html>
